# /usr/bin/env python3.6
# -*- encoding: utf-8 -*-
"""
@File    : manager.py
@Time    : 2020/2/2 0002 11:02
@Author  : zhangbing
@Email   : 18829172841@163.com
@Software: PyCharm
"""
import  os
from flask_script import Manager
from App import create_app
from flask_migrate import  MigrateCommand

env=os.environ.get("FLASK_ENV","develop")

manager = Manager(create_app(env))
manager.add_command('db', MigrateCommand)


if __name__ == "__main__":
    manager.run()
